package com.wicket.okrcomponent.web.contorller;

import cn.hutool.core.bean.BeanUtil;
import com.github.pagehelper.Page;
import com.github.pagehelper.page.PageMethod;
import com.wicket.okrcomponent.biz.service.MobileEndShellService;
import com.wicket.okrcomponent.biz.service.dto.req.*;
import com.wicket.okrcomponent.biz.service.dto.res.*;
import com.wicket.okrcomponent.common.ro.OkrResult;
import com.wicket.okrcomponent.common.util.CommonFunctionHelper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author ：
 * @date ：
 *
 *
 * @version 1.0
 */
@RestController
@RequestMapping("/comp/mobileEndShell/")
public class MobileEndShellController {

  @Autowired
  MobileEndShellService mobileEndShellService;
/**
   * D2执行组合去重部门就职记录(公共)
   */
    @PostMapping("implementGroupDeduplicationRecordCircularCombinationDeptCom")
    public OkrResult<ImplementGroupDeduplicationRecordCircularCombinationDeptComRespDto> implementGroupDeduplicationRecordCircularCombinationDeptCom(@RequestBody @Validated ImplementGroupDeduplicationRecordCircularCombinationDeptComReqDto reqDTO){
    return OkrResult.success(mobileEndShellService.implementGroupDeduplicationRecordCircularCombinationDeptCom(reqDTO));
    }
/**
   * D2执行调整主导航排序(公共)
   */
    @PostMapping("implementAdjustMainNavigationSortingCom")
    public OkrResult<ImplementAdjustMainNavigationSortingComRespDto> implementAdjustMainNavigationSortingCom(@RequestBody @Validated ImplementAdjustMainNavigationSortingComReqDto reqDTO){
    return OkrResult.success(mobileEndShellService.implementAdjustMainNavigationSortingCom(reqDTO));
    }
}
